package com.example.mybatisdemo.mapper;

import com.alibaba.fastjson.JSONObject;
import com.example.mybatisdemo.domain.entity.TestEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mybatisdemo.domain.param.TestParam;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ext.yangming13
 * @since 2023-08-15
 */
public interface TestMapper extends BaseMapper<TestEntity> {
    @SelectProvider(type = DirectSqlQuery.class,method = "getSql")
    List<JSONObject> directSqlQuery(Map<String,Object> param);
}
